package com.itheima.mall.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.mall.mapper.CompanyAddressMapper;
import com.itheima.mall.pojo.CompanyAddress;
import com.itheima.mall.service.OmsCompanyAddressService;
import com.itheima.mall.vo.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OmsCompanyAddressServiceImpl implements OmsCompanyAddressService {

    @Autowired
    private CompanyAddressMapper companyAddressMapper;

    /**
     * 获取所有收货地址
     */
    @Override
    public List<CompanyAddress> getList() {
        LambdaQueryWrapper<CompanyAddress> queryWrapper = new LambdaQueryWrapper<>();
        return companyAddressMapper.selectList(queryWrapper);
    }
}
